﻿using System;
using WindowsPhoneMvp;
using DemoWindowsPhoneMvp.Logic.Views.Main;
using DemoWindowsPhoneMvp.Logic.Views.Third;

namespace DemoWindowsPhoneMvp.Logic.Views.Second
{
    public class SecondViewPresenter : Presenter<IView<SecondViewModel>, SecondViewModel>
    {
        public SecondViewPresenter(IView<SecondViewModel> secondView) : base(secondView)
        {
            View.Load += View_Load;
        }

        void View_Load(object sender, EventArgs e)
        {
            //Logic
        }

        public void BackToHome()
        {
            Navigate.Back();
        }

        public void OnToThree()
        {
            Navigate.ToView<IView<ThirdViewModel>>();
        }
    }
}
